package a.e.b.a;

import a.e.b.b.j;
import a.e.b.b.t;
import a.e.b.c.cb;
import a.e.b.c.l;
import a.j.ld;
import a.j.qd;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

public class o
  extends i
{
  static Class c;
  public static int j;
  
  public String a()
  {
    return "ProxyShapeNode";
  }
  
  public String b()
  {
    return "http://www.yworks.com/xml/graphml";
  }
  
  public Class d()
  {
    if (!i.i) {}
    return c == null ? (o.c = b("a.j.qd")) : c;
  }
  
  public void a(ld paramld, Node paramNode, t paramt)
    throws a.e.b.b.a
  {
    boolean bool = i.i;
    int m = i.h;
    qd localqd = (qd)paramld;
    int i = 0;
    NodeList localNodeList = paramNode.getChildNodes();
    if (localNodeList != null)
    {
      int k = 0;
      do
      {
        if (k >= localNodeList.getLength()) {
          break;
        }
        Node localNode = localNodeList.item(k);
        if ((!bool) && (m != 0)) {
          return;
        }
        if (!bool)
        {
          if (localNode.getNodeType() == 1)
          {
            if (bool) {
              continue;
            }
            if ("Realizers".equals(localNode.getLocalName()))
            {
              NamedNodeMap localNamedNodeMap = localNode.getAttributes();
              i = Integer.parseInt(localNamedNodeMap.getNamedItem("active").getNodeValue());
              a(localqd, localNode, paramt);
            }
          }
          k++;
        }
      } while (m == 0);
    }
    if (!bool) {
      localqd.d(localqd.f(i));
    }
  }
  
  public void a(qd paramqd, Node paramNode, t paramt)
    throws a.e.b.b.a
  {
    boolean bool = i.i;
    int k = i.h;
    NodeList localNodeList = paramNode.getChildNodes();
    if (localNodeList != null)
    {
      int i = 0;
      do
      {
        if (i >= localNodeList.getLength()) {
          break;
        }
        Node localNode = localNodeList.item(i);
        if (!bool)
        {
          if (localNode.getNodeType() == 1)
          {
            j localj = new j(paramt);
            localj.a(a, Boolean.TRUE);
            ld localld = (ld)localj.a(localNode);
            paramqd.b(localld);
          }
          i++;
        }
      } while (k == 0);
    }
  }
  
  public void a(ld paramld, cb paramcb, a.e.b.c.o paramo)
    throws a.e.b.c.a
  {
    boolean bool = i.i;
    int m = i.h;
    qd localqd = (qd)paramld;
    int i = 0;
    int k = 0;
    ld localld;
    do
    {
      do
      {
        if (k >= localqd.h()) {
          break;
        }
        localld = localqd.f(k);
        if (bool) {
          break label121;
        }
        if (m != 0) {
          break label119;
        }
        if (localld == localqd.i()) {
          i = k;
        }
        k++;
      } while (m == 0);
      paramcb.a("Realizers", "http://www.yworks.com/xml/graphml").a("active", i);
    } while (bool);
    k = 0;
    label119:
    label121:
    do
    {
      if (k >= localqd.h()) {
        break;
      }
      localld = localqd.f(k);
      l locall = new l(paramo);
      locall.a("y.io.graphml.output.SerializationProperties.CURRENT_NODE_REALIZER", localld);
      locall.b(localld);
      k++;
      if ((!bool) && (m != 0)) {
        return;
      }
    } while (m == 0);
    if (!bool) {
      paramcb.b();
    }
  }
  
  static Class b(String paramString)
  {
    try
    {
      return Class.forName(paramString);
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
    }
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.e.b.a.o
 * JD-Core Version:    0.7.0.1
 */